﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using asprise_ocr_api;

namespace aspriseDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            AspriseOCR.SetUp();
            AspriseOCR ocr = new AspriseOCR();
            ocr.StartEngine("eng", AspriseOCR.SPEED_FASTEST);
            string file = "8.png";
            string s = ocr.Recognize(file, -1, -1, -1, -1, -1, AspriseOCR.RECOGNIZE_TYPE_ALL, AspriseOCR.OUTPUT_FORMAT_PLAINTEXT);
            Console.WriteLine(s);
            ocr.StopEngine();
            Console.ReadLine();
        }
    }
}
